The <hr> tag creates a horizontal line in an HTML page. The hr element can be used to separate content in an HTML page.

Syntax:
<hr\>?


Example




<!DOCTYPE html>
<html lang="en">




 <body> 
<p>The hr tag defines a horizontal rule:</p>
 <hr align="center" size="150px" color="red" width="15" > <p>This is a paragraph</p> <hr />
 <p>This is a paragraph</p>
 <hr /> 
<p>This is a paragraph</p> </body>
 </html>\
    Output:


All Tutorial => 123456789101112131415





Write Comment